<template>
  <div>
    <k-button @click="aaaa">eeee</k-button>
    <k-nav :data="navlist" @click='goPath'></k-nav>
    <k-input type="text" v-model="name"></k-input>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        navlist:[
            {
                name:'用户列表',
                icon:'',
                children:[]
            },
            {
                name:'统计',
                icon:'',
                children:[]
            },
            {
                name:'设置',
                icon:'',
                showChildren:false,
                children:[
                  {
                    name:'系统设置'
                  },
                  {
                    name:'管理设置'
                  }
                ]
            },
            {
                name:'权限',
                icon:'',
                showChildren:false,
                children:[
                  {
                    name:'系统权限'
                  },
                  {
                    name:'操作权限'
                  }
                ]
            },
            
        ],
        name:'111',
        ruleForm: {
          name: '',
          passward: ''
        },
        rules: {
          name: [
            { required: true, message: '请输入用户账号', trigger: 'blur' }
		  ],
		  b: [
            { required: true, message: '请输入密码', trigger: 'blur' },
            { min: 6, message: '密码不少于6位', trigger: 'blur' }
          ],
        }
      };
    },
    methods: {
      aaaa () {
        console.log('222')
      },
      goPath (data) {
        console.log(data)
      }
    }
  }
</script>
